<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js">
    </script>
</head>

<body>



欢迎<h1 th:text="${loginId}"></h1>登入



<br>
<button id="bu">获取Session</button>


</body>

<script>
    $("#bu").click(function(){
    $.get("/getSession",function(data,status){
        alert("返回数据: " + data );
    });
});

</script>


</html>